from django.conf.urls import url
from .views import statistical, users
from rest_framework_jwt.views import obtain_jwt_token

urlpatterns = [
    # 后台管理认证
    url(r"^authorizations/$", obtain_jwt_token),

    # 用户总数统计
    url(r"^statistical/total_count/$", statistical.UserTotalCountView.as_view()),

    # 日增用户
    url(r"^statistical/day_increment/$", statistical.UserDailyAddView.as_view()),

    # 日下单用户数量
    url(r"^statistical/day_orders/$", statistical.UserDailyOrderCountView.as_view()),

    # 月增用户
    url(r"^statistical/month_increment/$", statistical.UserMonthCountView.as_view()),

    # 日分类商品访问统计
    url(r"^statistical/goods_day_views/$", statistical.UserCategoryCountAPIView.as_view()),

    # 用户数量显示
    url(r"^users/$", users.UserListView.as_view()),

]
